﻿<UserControl x:Class="AllenalaMente.Games.Blocks.Block"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="80" d:DesignWidth="100">

  <Canvas x:Name="LayoutRoot" Height="80">
    <Canvas.Resources>
      <Storyboard x:Name="expand" Duration="0:0:0.5" >
        <DoubleAnimation From="0" To="1" Storyboard.TargetName="scaleTransform" Storyboard.TargetProperty="ScaleY"  Duration="0:0:0.5"/>
        <DoubleAnimation From="0" To="1" Storyboard.TargetName="scaleTransform" Storyboard.TargetProperty="ScaleX" Duration="0:0:0.5"/>
      </Storyboard>
      <Storyboard x:Name="hide" Duration="0:0:0.5" >
        <DoubleAnimation From="1" To="0" Storyboard.TargetName="scaleTransform" Storyboard.TargetProperty="ScaleY"  Duration="0:0:0.5"/>
        <DoubleAnimation From="1" To="0" Storyboard.TargetName="scaleTransform" Storyboard.TargetProperty="ScaleX" Duration="0:0:0.5"/>
      </Storyboard>
    </Canvas.Resources>
    <Canvas.RenderTransform>
      <ScaleTransform  x:Name="scaleTransform" ScaleX="0" ScaleY="0" CenterX="50" CenterY="40"></ScaleTransform>
    </Canvas.RenderTransform>
      
    <Rectangle Canvas.Left="0" Canvas.Top="0" Height="80" Name="rectangle" Stroke="Black" StrokeThickness="2" Width="100" RadiusX="10" RadiusY="10" Opacity="0.5" />
    <Image Name="rectangleImg"  Source="/AllenalaMente;component/Assets/Images/Blocks/lavagna.png" Height="80" Width="100" Canvas.Left="0" Canvas.Top="0" />
    <TextBlock Canvas.Left="0" Canvas.Top="19" Height="49" Name="textBlock1" Text="num" Width="100" Foreground="White" TextAlignment="Center" FontSize="30" />
  </Canvas>
</UserControl>
